//4.
#include<stdio.h>
int main()
{
	int n,ride = 1;
	printf("input n:");
	scanf("%d",&n);
	for(int i = 1; i <= n; i++)
	{
		ride *= i;
	}
	printf("%d! = %d\n",n,ride);
	return 0;
}
